QT += quick multimedia  positioning  network

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        tool/tool_http.cpp \
        tool/tool_qrdecoder.cpp \
        main.cpp

RESOURCES += qml.qrc

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    tool/tool_http.h \
    tool/tool_qrdecoder.h



win32{
CONFIG(release, debug|release){
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_core454
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_imgproc454
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_objdetect454
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_wechat_qrcode454
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_imgcodecs454
}
else:CONFIG(debug, debug|release){
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_core454d
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_imgproc454d
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_objdetect454d
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_wechat_qrcode454d
    LIBS += -LD:/opencv/install64/x64/vc16/lib/ -lopencv_imgcodecs454d
}
LIBS += -LD:/opencv/install64/x64/vc16/bin/
INCLUDEPATH += D:/opencv/install64/include
DEPENDPATH += D:/opencv/install64/include
}


#unix {
##    message("armeabi-v7a")
#QT += androidextras
##QT += core-private
##ANDROID_OPENCV = D:/software/android/OpenCV-android-sdk/sdk/native
#ANDROID_OPENCV =D:/opencv/OpenCV-android-sdk/sdk/native

#    INCLUDEPATH += $$ANDROID_OPENCV/jni/include/opencv2 \
#                   $$ANDROID_OPENCV/jni/include

#    LIBS += $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_calib3d.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_core.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_dnn.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_features2d.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_flann.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_highgui.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_imgcodecs.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_imgproc.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_ml.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_objdetect.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_photo.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_stitching.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_video.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_videoio.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libcpufeatures.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libIlmImf.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libittnotify.a \
##            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibjasper.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibjpeg-turbo.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibpng.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibprotobuf.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibtiff.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/liblibwebp.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libquirc.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libtbb.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libtegra_hal.a \
#            $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_java4.so
##    ANDROID_EXTRA_LIBS = \
##        $$PWD/../../../software/android/OpenCV-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java4.so

#}

#ANDROID_EXTRA_LIBS = D:/opencv/OpenCV-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java4.so


unix:!macx{
#添加opencv库（android arm64-v8a版）
contains(ANDROID_TARGET_ARCH,arm64-v8a) {
    message("arm64-v8a")

ANDROID_OPENCV = D:/opencv/OpenCV-android-sdk/sdk/native

    INCLUDEPATH += $$ANDROID_OPENCV/jni/include/opencv2 \
                   $$ANDROID_OPENCV/jni/include

    LIBS += \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_core.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_imgproc.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_objdetect.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libcpufeatures.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libittnotify.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libquirc.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libtegra_hal.a \
            $$ANDROID_OPENCV/libs/arm64-v8a/libopencv_java4.so

}
ANDROID_EXTRA_LIBS = D:/opencv/OpenCV-android-sdk/sdk/native/libs/arm64-v8a/libopencv_java4.so

#添加opencv库（android armeabi-v7a版）
#contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
#    message("armeabi-v7a")

#ANDROID_OPENCV = E:/software/opencv/opencv4.5.4/OpenCV-android-sdk/sdk/native

#    INCLUDEPATH += $$ANDROID_OPENCV/jni/include/opencv2 \
#                   $$ANDROID_OPENCV/jni/include

#    LIBS += \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_core.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_imgproc.a \
#            $$ANDROID_OPENCV/staticlibs/armeabi-v7a/libopencv_objdetect.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libcpufeatures.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libittnotify.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libquirc.a \
#            $$ANDROID_OPENCV/3rdparty/libs/armeabi-v7a/libtegra_hal.a \
#            $$ANDROID_OPENCV/libs/armeabi-v7a/libopencv_java4.so



#}
#ANDROID_EXTRA_LIBS = E:/software/opencv/opencv4.5.4/OpenCV-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java4.so

}
